package SecretSanta.core;

import java.util.List;
import java.util.ArrayList;

/**
 *
 * @author mrandell
 */
public class Person 
{
    public void clearRestrictions(){
        restrictions.clear();
    }
    
    public void removeRestrictions(String name){
        restrictions.remove(name);
    }
    
    public void addRestriction(String name){
        restrictions.add(name);
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<String> getRestrictions() {
        return restrictions;
    }

    public void setRestrictions(List<String> restrictions) {
        this.restrictions = restrictions;
    }

    public Person(String name, String email) {
        this.name = name;
        this.email = email;
        restrictions = new ArrayList();
    }

    public Person(String name, String email, List<String> restrictions) {
        this.name = name;
        this.email = email;
        this.restrictions = restrictions;
    }
    String name;
    String email;
    List<String> restrictions;
}
